﻿using Backend.Models.Database;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Backend.Areas.Kuku.Controllers
{
    public class ProductController : Controller
    {
        // GET: Kuku/Product
        Entity db = new Entity();
        public ActionResult Index()
        {

            
            // Cung cấp cho bảng
            ViewBag.Products = db.Products;
            // Cung cấp cho 2 combo-box
            ViewBag.CategoryId = new SelectList(db.Categorys, "Id", "Name");
            ViewBag.SupplierId = new SelectList(db.Suppeliers, "Id", "Name");

            return View();
        }
       
    }
}